package com.situ.cloud.gateway.feign;

import com.situ.cloud.gateway.security.LoginUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user")
public interface UserFeign {

    @RequestMapping("/user/user/selectByUsername")
    LoginUser loginUser(@RequestParam("username") String username);

    @GetMapping("/user/selectById")
    LoginUser getById(@RequestParam("id") Integer id);
}
